<template>
    <slot :controller="controller" :store="store" :model="model" :actions="{ handleComponentAction }">
        <slot name="DashboardViewdashboard_container1PortletContainer" :controller="controller" :store="store" :model="model">
            <AppPortletContainer :classNames="classNames" :name="props.name" :layoutOpts="{selfLayout: 'TABLE_24COL',parentLayout: 'TABLE_24COL',colMD: 24,}" title="" :isShowTitle="true"  >
                <slot name="IBIZOrderDashboardViewdashboard_container3Portlet" :controller="controller" :store="store" :model="model" :actions="{ handleCtrlInit, handleCtrlAction, handleCtrlDestroy }">
                    <IBIZOrderDashboardViewdashboard_container3Portlet
                        name="dashboard_container3"
                        :context="store.context"
                        :viewParams="store.viewParams"
                        :pLoadingHelper="store.loadingHelper"
                        :pViewCtx="store.viewCtx"
                        @ctrl-init="(name:string, ability:any) => { handleCtrlInit(controller, name, ability) }"
                        @ctrl-action="(name:string, action:any, data:any) => { handleCtrlAction(controller, name, action, data) }"
                        @ctrl-destroy="(name:string, data:any) => { handleCtrlDestroy(controller, name, data) }"
                    ></IBIZOrderDashboardViewdashboard_container3Portlet>       
                </slot>
                <slot name="IBIZOrderDashboardViewdashboard_container4Portlet" :controller="controller" :store="store" :model="model" :actions="{ handleCtrlInit, handleCtrlAction, handleCtrlDestroy }">
                    <IBIZOrderDashboardViewdashboard_container4Portlet
                        name="dashboard_container4"
                        :context="store.context"
                        :viewParams="store.viewParams"
                        :pLoadingHelper="store.loadingHelper"
                        :pViewCtx="store.viewCtx"
                        @ctrl-init="(name:string, ability:any) => { handleCtrlInit(controller, name, ability) }"
                        @ctrl-action="(name:string, action:any, data:any) => { handleCtrlAction(controller, name, action, data) }"
                        @ctrl-destroy="(name:string, data:any) => { handleCtrlDestroy(controller, name, data) }"
                    ></IBIZOrderDashboardViewdashboard_container4Portlet>       
                </slot>
                <slot name="IBIZOrderDashboardViewdashboard_container5Portlet" :controller="controller" :store="store" :model="model" :actions="{ handleCtrlInit, handleCtrlAction, handleCtrlDestroy }">
                    <IBIZOrderDashboardViewdashboard_container5Portlet
                        name="dashboard_container5"
                        :context="store.context"
                        :viewParams="store.viewParams"
                        :pLoadingHelper="store.loadingHelper"
                        :pViewCtx="store.viewCtx"
                        @ctrl-init="(name:string, ability:any) => { handleCtrlInit(controller, name, ability) }"
                        @ctrl-action="(name:string, action:any, data:any) => { handleCtrlAction(controller, name, action, data) }"
                        @ctrl-destroy="(name:string, data:any) => { handleCtrlDestroy(controller, name, data) }"
                    ></IBIZOrderDashboardViewdashboard_container5Portlet>       
                </slot>
                <slot name="IBIZOrderDashboardViewdashboard_container6Portlet" :controller="controller" :store="store" :model="model" :actions="{ handleCtrlInit, handleCtrlAction, handleCtrlDestroy }">
                    <IBIZOrderDashboardViewdashboard_container6Portlet
                        name="dashboard_container6"
                        :context="store.context"
                        :viewParams="store.viewParams"
                        :pLoadingHelper="store.loadingHelper"
                        :pViewCtx="store.viewCtx"
                        @ctrl-init="(name:string, ability:any) => { handleCtrlInit(controller, name, ability) }"
                        @ctrl-action="(name:string, action:any, data:any) => { handleCtrlAction(controller, name, action, data) }"
                        @ctrl-destroy="(name:string, data:any) => { handleCtrlDestroy(controller, name, data) }"
                    ></IBIZOrderDashboardViewdashboard_container6Portlet>       
                </slot>
                <slot name="IBIZOrderDetailportalComponentsHistogramPortlet" :controller="controller" :store="store" :model="model" :actions="{ handleCtrlInit, handleCtrlAction, handleCtrlDestroy }">
                    <IBIZOrderDetailportalComponentsHistogramPortlet
                        name="dashboard_sysportlet1"
                        :context="store.context"
                        :viewParams="store.viewParams"
                        :pLoadingHelper="store.loadingHelper"
                        :pViewCtx="store.viewCtx"
                        @ctrl-init="(name:string, ability:any) => { handleCtrlInit(controller, name, ability) }"
                        @ctrl-action="(name:string, action:any, data:any) => { handleCtrlAction(controller, name, action, data) }"
                        @ctrl-destroy="(name:string, data:any) => { handleCtrlDestroy(controller, name, data) }"
                    ></IBIZOrderDetailportalComponentsHistogramPortlet>       
                </slot>
                <slot name="IBIZOrderDetailportalComponentsListViewPortlet" :controller="controller" :store="store" :model="model" :actions="{ handleCtrlInit, handleCtrlAction, handleCtrlDestroy }">
                    <IBIZOrderDetailportalComponentsListViewPortlet
                        name="dashboard_sysportlet2"
                        :context="store.context"
                        :viewParams="store.viewParams"
                        :pLoadingHelper="store.loadingHelper"
                        :pViewCtx="store.viewCtx"
                        @ctrl-init="(name:string, ability:any) => { handleCtrlInit(controller, name, ability) }"
                        @ctrl-action="(name:string, action:any, data:any) => { handleCtrlAction(controller, name, action, data) }"
                        @ctrl-destroy="(name:string, data:any) => { handleCtrlDestroy(controller, name, data) }"
                    ></IBIZOrderDetailportalComponentsListViewPortlet>       
                </slot>
                <slot name="IBIZOrderDashboardViewdashboard_container2Portlet" :controller="controller" :store="store" :model="model" :actions="{ handleCtrlInit, handleCtrlAction, handleCtrlDestroy }">
                    <IBIZOrderDashboardViewdashboard_container2Portlet
                        name="dashboard_container2"
                        :context="store.context"
                        :viewParams="store.viewParams"
                        :pLoadingHelper="store.loadingHelper"
                        :pViewCtx="store.viewCtx"
                        @ctrl-init="(name:string, ability:any) => { handleCtrlInit(controller, name, ability) }"
                        @ctrl-action="(name:string, action:any, data:any) => { handleCtrlAction(controller, name, action, data) }"
                        @ctrl-destroy="(name:string, data:any) => { handleCtrlDestroy(controller, name, data) }"
                    ></IBIZOrderDashboardViewdashboard_container2Portlet>       
                </slot>
            </AppPortletContainer>
        </slot>
    </slot>
</template>
<script setup lang="ts">
// 基于template/src/widgets/{{appEntities}}/{{spinalCase ctrl.parent.codeName}}-{{ctrls@PORTLET}}-portlet/{{spinalCase ctrl.parent.codeName}}-{{spinalCase ctrl.codeName}}-portlet-base.vue.hbs生成
import { AppPortlet, AppPortletContainer } from '@components/widgets/portlet';
import { AppCol } from '@/components/common/col';
import { AppActionBar } from '@/components/common/action-bar';
import { AppRaw } from '@/components/common/raw';
import IBIZOrderDashboardViewdashboard_container3Portlet from '@widgets/ibiz-order/dashboard-viewdashboard-container-1-dashboard-viewdashboard-container-3-portlet/dashboard-viewdashboard-container-1-dashboard-viewdashboard-container-3-portlet.vue';
import IBIZOrderDashboardViewdashboard_container4Portlet from '@widgets/ibiz-order/dashboard-viewdashboard-container-1-dashboard-viewdashboard-container-4-portlet/dashboard-viewdashboard-container-1-dashboard-viewdashboard-container-4-portlet.vue';
import IBIZOrderDashboardViewdashboard_container5Portlet from '@widgets/ibiz-order/dashboard-viewdashboard-container-1-dashboard-viewdashboard-container-5-portlet/dashboard-viewdashboard-container-1-dashboard-viewdashboard-container-5-portlet.vue';
import IBIZOrderDashboardViewdashboard_container6Portlet from '@widgets/ibiz-order/dashboard-viewdashboard-container-1-dashboard-viewdashboard-container-6-portlet/dashboard-viewdashboard-container-1-dashboard-viewdashboard-container-6-portlet.vue';
import IBIZOrderDetailportalComponentsHistogramPortlet from '@widgets/ibiz-order-detail/dashboard-viewdashboard-container-1-portal-components-histogram-portlet/dashboard-viewdashboard-container-1-portal-components-histogram-portlet.vue';
import IBIZOrderDetailportalComponentsListViewPortlet from '@widgets/ibiz-order-detail/dashboard-viewdashboard-container-1-portal-components-list-view-portlet/dashboard-viewdashboard-container-1-portal-components-list-view-portlet.vue';
import IBIZOrderDashboardViewdashboard_container2Portlet from '@widgets/ibiz-order/dashboard-viewdashboard-container-1-dashboard-viewdashboard-container-2-portlet/dashboard-viewdashboard-container-1-dashboard-viewdashboard-container-2-portlet.vue';
import { useProps, useBasic, useAction, useController } from './usr-dashboard-viewdashboard-container-1-portlet-hook';
import { IEvent, IViewAbility, ICtrlAbility, PortletActionType, IPortletAbility, IPortletStore, IParam } from "@/core";
// 输入参数
const props = defineProps(useProps());

// 基础数据
const { 
    model,
    controlID, 
    getClassNames, 
    useNavParamsBind, 
    useEventBind, 
    handleCtrlDestroy,
    handleCtrlInit, 
    handleCtrlAction,
    handleToolbarItemClick,
    handleComponentAction
} = useBasic(props);

const emit = defineEmits<{
    (event: 'ctrl-action', name: string, action: PortletActionType, data: IParam[]): void;
    (event: 'ctrl-init', name: string, data: IPortletAbility): void;
    (event: 'ctrl-destroy', name: string, data: IParam): void;
}>();

const evt = useEventBind(emit);
const classNames = computed(() => {
    return getClassNames(props);
});

const controller = useController(props, evt, { controlID });

const { handleViewInit } = useAction(controller);

useNavParamsBind(controller, props);

const store: IPortletStore = controller.getStore();

onMounted(() => {
    controller.ctrlMounted();
});

onUnmounted(() => {
    controller.ctrlDestroy();
})
</script>